<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fck" uri="/WEB-INF/FCKeditor.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="<%=request.getContextPath()%>/css/Style.css"
			type="text/css" rel="stylesheet">
		<link href="<%=request.getContextPath()%>/css/admin.css"
			type="text/css" rel="stylesheet">
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/img.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/jquery-1.3.2.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/select.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath() %>/FCKeditor/fckeditor.js"></script>
		
		<script type="text/javascript">
		
		window.onload = function(){
		document.getElementById("pub.title").focus();
		//var oFCKeditor1 = new FCKeditor("pub.content");
		//oFCKeditor1.BasePath = "<%=request.getContextPath()%>/FCKeditor/";
		//oFCKeditor1.ReplaceTextarea();
		}
		function check(){
			if(document.getElementById("pub.title").value.length < 1) {
				alert("请输入标题");
				document.getElementById("pub.title").focus();
				return false;
			}
	
		return true;
		
	}
	</script>

		<title>公共文字-修改</title>
	</head>
	<body>
		<form action="<%=request.getContextPath()%>/admin/updatePublicObj.htm"
			method="post" id="n_form" onsubmit="return check();">
			<table cellspacing="0" cellpadding="0" border="0" align="center"
				width="600">
				<tbody>
					<tr>
						<table cellspacing="0" cellpadding="0" border="0" align="center"
				width="600">
				<tbody>
					<tr>
						<table width="100%" cellspacing="0" cellpadding="0"
				bordercolor="#003366" border="1" class="Table1">
				<tr height="30px">
									
									<td colspan="6" class="thead">
										当前位置:
									<c:if test="${pub.nid == 5}">公司文化</c:if>
									<c:if test="${pub.nid == 18}">装修流程</c:if>
										<c:if test="${pub.nid == 19}">服务范围</c:if>
									&gt;修改信息									
								</tr>
				<tr style="font-weight: bold; background: #EEEEEE;">
					<td height="25" align="center">
						标题：
					</td>
					<td height="25" align="center">
						<textarea rows="2" cols="100" id="pub.title" name="pub.title">${pub.title }</textarea>
					</td>
				</tr>
				<tr style="font-weight: bold; background: #EEEEEE;">
					<td height="25" align="center">
						内容:
					</td>
					<td colspan="2" height="25">
						<!-- textarea id="pub.content" name="pub.content" rows="1" cols="1">${pub.content}</textarea-->
						<fck:editor id="pub.content" width="100%" height="300">
							${pub.content}
						</fck:editor>
					</td>
				</tr>
				<tr style="font-weight: bold; background: #EEEEEE;">
					<td colspan="2" height="25" align="right">
					<br>
					<br>
					<br>
					<input type="submit" value="提交" />
					<input type="button" onclick="javascript:history.go(-1)" value="返回" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</td>
				</tr>
			</table>
			<input type="hidden" name="pub.id" value="${pub.id}">
			<input type="hidden" name="id" value="${pub.id}">
			<input type="hidden" name="nid" value="${pub.nid}">
		</form>
	</body>
</html>